import http from '@/utils/http.js'

// 获取banner
export function getBannerApi(params = {}) {
    const { distributionSite = '1' } = params
    return http({
        url: '/home/banner',
        params: {
            distributionSite
        }
    })
}
// 获取新鲜好物
export function getNewApi() {
    return http({
        url: '/home/new'
    })
}
// 获取人气推荐
export function getHotApi() {
    return http({
        url: '/home/hot'
    })
}
// 获取产品
export function getGoodsAPI() {
    return http({
        url: '/home/goods'
    })
}
